<?php
session_start();
include "../public/common/config.php";
$user_id = isset($_SESSION['home_userid'])?$_SESSION['home_userid']:0;

$sqlCommentShelf = "select comment.* from comment left join weibo on(comment.weibo_id = weibo.id) where weibo.user_id = {$user_id}";
$resCommentShelf = mysql_query($sqlCommentShelf);
$commentNumShelf = mysql_num_rows($resCommentShelf);

$info = array('commentNumShelf'=>$commentNumShelf);
echo json_encode($info);
?>